package dingshuangwu.graduation.graduationo2o.utils;

import dingshuangwu.graduation.graduationo2o.enums.InfoStatusEnum;
import dingshuangwu.graduation.graduationo2o.enums.JurisdictionEnum;
import dingshuangwu.graduation.graduationo2o.pojo.ApplyForManagementVO;
import dingshuangwu.graduation.graduationo2o.pojo.JurisdictionVO;
import dingshuangwu.graduation.graduationo2o.pojo.MyResume.MyResumeAllVO;
import dingshuangwu.graduation.graduationo2o.pojo.RealNameAuthenticationVO;
import dingshuangwu.graduation.graduationo2o.pojo.UserInformation.UserInformationAllVO;

public class UserUtils {
    public static JurisdictionVO createdDefaultJurisDiction(String id, String name) {
        JurisdictionVO jurisDiction = new JurisdictionVO();
        final Boolean YES = JurisdictionEnum.YES.getValue();
        final Boolean NO = JurisdictionEnum.NO.getValue();
        jurisDiction.setId(id);
        jurisDiction.setName(name);
        jurisDiction.setManagement(NO);
        jurisDiction.setPublish(YES);
        jurisDiction.setMyPublish(NO);
        jurisDiction.setMyApply(NO);
        jurisDiction.setApply(NO);
        jurisDiction.setRealNameAuthentication(YES);
        jurisDiction.setApplyForManagement(NO);
        jurisDiction.setLogin(YES);
        return jurisDiction;
    }

    public static UserInformationAllVO createdDefaultUserInfo(String id) {
        UserInformationAllVO userInformationAllVO = new UserInformationAllVO();
        userInformationAllVO.setId(id);
        userInformationAllVO.setName("");
        userInformationAllVO.setNation("");
        userInformationAllVO.setSex("");
        userInformationAllVO.setBirthday("");
        userInformationAllVO.setEducationBackground("");
        userInformationAllVO.setTelephone("");
        userInformationAllVO.setEmail("");
        userInformationAllVO.setImageUrl("");
        userInformationAllVO.setSelfIntroduction("");
        userInformationAllVO.setEducationExperienceFirstStartDate("");
        userInformationAllVO.setEducationExperienceFirstEndDate("");
        userInformationAllVO.setEducationExperienceFirstSchool("");
        userInformationAllVO.setEducationExperienceSecondStartDate("");
        userInformationAllVO.setEducationExperienceSecondEndDate("");
        userInformationAllVO.setEducationExperienceSecondSchool("");
        userInformationAllVO.setEducationExperienceThirdStartDate("");
        userInformationAllVO.setEducationExperienceThirdEndDate("");
        userInformationAllVO.setEducationExperienceThirdSchool("");
        userInformationAllVO.setSelfSignature("");
        userInformationAllVO.setLastModifyDate(DateUtils.getFormatDate());
        return userInformationAllVO;
    }

    public static MyResumeAllVO createdDefaultMyResume(String id) {
        MyResumeAllVO myResumeAll = new MyResumeAllVO();
        myResumeAll.setId(id);
        myResumeAll.setName("");
        myResumeAll.setSex("");
        myResumeAll.setBirthday("");
        myResumeAll.setWorkTime("");
        myResumeAll.setEducationBackground("");
        myResumeAll.setArea("");
        myResumeAll.setTelephone("");
        myResumeAll.setEmail("");
        myResumeAll.setExpertise("");
        myResumeAll.setExpectedWorkFirstJob("");
        myResumeAll.setExpectedWorkFirstSalary("");
        myResumeAll.setExpectedWorkFirstArea("");
        myResumeAll.setExpectedWorkSecondJob("");
        myResumeAll.setExpectedWorkSecondSalary("");
        myResumeAll.setExpectedWorkSecondArea("");
        myResumeAll.setExpectedWorkThirdJob("");
        myResumeAll.setExpectedWorkThirdSalary("");
        myResumeAll.setExpectedWorkThirdArea("");
        myResumeAll.setWorkExperience("");
        myResumeAll.setLastModifyDate(DateUtils.getFormatDate());
        return myResumeAll;
    }

    public static RealNameAuthenticationVO createDefaultRealNameAuthentication(String id, String name) {
        RealNameAuthenticationVO result = new RealNameAuthenticationVO();
        result.setId(id);
        result.setName(name);
        result.setIdentityCardFront("");
        result.setIdentityCardReverse("");
        result.setCurrentPhoto("");
        result.setApplyDate("");
        result.setFlag(InfoStatusEnum.DEFAULT.getValue());
        return result;
    }

    public static ApplyForManagementVO createDefaultApplyForManagement(String id, String name) {
        ApplyForManagementVO result = new ApplyForManagementVO();
        result.setId(id);
        result.setName(name);
        result.setContext("");
        result.setContactWay("");
        result.setApplyDate("");
        result.setFlag(InfoStatusEnum.DEFAULT.getValue());
        return result;
    }
}
